<div class="section">
  <form (ngSubmit)="search()" class="form-horizontal">
    <div class="form-group row">

      <div class="col-sm-5">
        <label for="companyname" class="col-sm-5 control-label">公&nbsp;&nbsp;司&nbsp;&nbsp;名</label>
        <div class="col-sm-7">
          <input [(ngModel)]="searchForm.companyname" name="companyname" type="text" class="form-control">
        </div>
      </div>

      <div class="col-sm-5">
        <label for="name" class="col-sm-5 control-label">姓名</label>
        <div class="col-sm-7">
          <input [(ngModel)]="searchForm.name" name="name" type="text" class="form-control">
        </div>
      </div>

    </div>

    <div class="form-group row">

      <div class="col-sm-5">
        <label for="type" class="col-sm-5 control-label">证书类型</label>
        <div class="col-sm-7">
          <select [(ngModel)]="searchForm.type" name="type" type="text" class="form-control">
            <option value="" selected>全部</option>
            <option value="质量员">质量员</option>
            <option value="施工员">施工员</option>
            <option value="安全员">安全员</option>
            <option value="标准员">标准员</option>
            <option value="材料员">材料员</option>
            <option value="机械员">机械员</option>
            <option value="劳务员">劳务员</option>
            <option value="资料员">资料员</option>
          </select>
        </div>
      </div>

      <div class="col-sm-5">
        <label for="province" class="col-sm-5 control-label">省份</label>
        <div class="col-sm-7">
          <select [(ngModel)]="searchForm.province" name="province" type="text" class="form-control">
            <option [value]="pro" *ngFor="let pro of provinces">{{pro}}</option>
          </select>
        </div>
      </div>

      <div class="col-sm-2">
        <button type="submit" class="btn btn-primary pull-left">
          <i class="fa fa-search" aria-hidden="true"></i>
          查询</button>
      </div>
    </div>
  </form>
</div>
<div class="section btn-section btn-toolbar">
  <span *ngIf="errorShow">请重新登录</span>
</div>
<div class="section">
  <data-tables [searchParams]="searchForm" [config]="dataTablesConfig"
               (onSelect)="tableRowSelect($event)" (onError)="handleError($event)"></data-tables>
</div>
